package SingleLinkList;

public class MyNode<T>{
	private T data;
	public MyNode next;
	
	{
		next=null;
	}
	
	public MyNode(){}
	
	public MyNode(T data){
		set(data);
	}
	
	public void set(T data){
		this.data=data;
	}
	
	public T get(){
		return data;
	}
}
